package com.freewater.springboot.demo.ioc.genericdi;

import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class DogBusiness extends AnimalBusiness<Dog>{
    public DogBusiness(List<Dog> dogs) {
        super(dogs);
    }

    @Override
    public void doSomeBusiness() {
        System.out.println(this.animals.size() + " dogs do some business");
    }
}
